import Vue from 'vue'
import Vuex from 'vuex'
import createPersistedState from "vuex-persistedstate";
Vue.use(Vuex)

export default new Vuex.Store({
  plugins: [createPersistedState()],
  state: {
    // 详情数据
    detailData: "",
    // 详情状态
    status: ""
  },
  mutations: {
    detailData(state, data) {
      state.detailData = data
    },
    status(state, data) {
      state.status = data
    }
  },
  actions: {

  },
  getters: {

  },
  modules: {
  }
})
